package com.cskaoyan.mapper;

import com.cskaoyan.bean.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 创建日期: 2022/11/22 17:45
 *
 * @author ciggar
 */
public interface StudentMapper {

    // 单个简单类型
    String selectNameById(@Param("id") Integer id);



    // 多个简单类型
    List<String> selectNameList();
    String[] selectNameArray();



    // 单个Java对象
    Student selectStudentById(@Param("id") Integer id);


    // 多个Java对象
    List<Student> selectStudentList();
    Student[] selectStudentArray();


    // ResultMap
    Student selectStudentByIdUserResultMap(Integer id);


    int insertStudent(Student student);


    Student selectStudentById2(Integer id,String name,Integer age);


}
